package com.xty;


import com.xty.factory.factories.HuaWeiPhoneFactory;
import com.xty.factory.factories.IPhoneFactory;
import com.xty.factory.factories.MidPhoneFactory;


/**
 * Created By IntelliJ IDEA
 *
 * @author 许腾洋
 * @date 2021/11/24
 * description:
 */
public class ProductPhoneDemo {
    public static void main(String[] args) {
        //使用专属工厂生产对应品牌的手机
        new MidPhoneFactory().makePhone();
        new IPhoneFactory().makePhone();
        new HuaWeiPhoneFactory().makePhone();
    }
}
